package Day02;

public class Demo13 {
    public static void main(String[] args) {
        //水仙花
        for (int i = 100; i < 1000; i++) {//遍历三位数
            int a = i/100%10;
            int b = i/10%10;
            int c = i%10;
            while(i == a * a * a + b * b * b + c * c * c){
                System.out.println(i);
                break;//结束while循环但是for循环继续
            }
        }
    }
}
